#ifndef _GOBAL_H_
#define _GOBAL_H_

#define	SUCCESS								0x00000000

#define	ERROR_INIT_WSA_FAIL		0xF0000001
#define	ERROR_CONNECT_FAIL		0xF0000010
#define	ERROR_HELLO_FAIL				0xF0000011
#define	ERROR_AUTH_FAIL				0xF0000100
#define	ERROR_SET_SENDER_FAIL	0xF0000101
#define	ERROR_SET_DST_FAIL			0xF0000110
#define	ERROR_SET_TEXT_FAIL		0xF0000111

int __declspec(dllexport) SendEmail(const char* smtpServer,
													      int smtpPort,
														  const char* user,
														  const char* passwd,
														  const char* from,
														  const char* dst,
														  const char* title, 
														  const char* content);

#endif
